const express = require('express')
const router = express.Router()
const CategoryController = require('../../controller/category')

router.post('/add', CategoryController.add)
router.post('/edit/:id', CategoryController.edit)
router.get('/delete/:id', CategoryController.delete)
router.get('/check/:category_name', CategoryController.check)
router.get('/findById/:id', CategoryController.findById)
router.get('/findAll', CategoryController.findAll)

module.exports = router